import { gql } from "@apollo/client";

const loginGql = gql`
  mutation ($userId: String!, $pwHash: String!) {
    auth(userId: $userId, pwHash: $pwHash) {
      responseCode
      responseMessage
      token
      userId
      permissions {
        functionProfileList {
          functionId
          functionName
          sequence
          pageName
          permissionId
          subFunctionProfileList {
            subFunctionId
            subFunctionName
            functionId
            pageName
            permissionId
            sequence
          }
        }
      }
    }
  }
`;

export { loginGql };
